package ar.com.gep.soccer.services.dto;

import com.google.gson.annotations.Expose;

import ar.com.cdt.framework.business.dto.BaseDTO;

public class PositionDTO extends BaseDTO {

	private static final long serialVersionUID = 9079969493905903532L;

	@Expose
	private int win;
	@Expose
	private int lose;
	@Expose
	private int draw;
	@Expose
	private int goal;
	@Expose
	private int goalOwn;
	@Expose
	private TeamDTO team;

	public PositionDTO(TeamDTO team, int win, int lose, int draw, int goal, int goalOwn) {
		this.team = team;
		this.win = win;
		this.lose = lose;
		this.draw = draw;
		this.goal = goal;
		this.goalOwn = goalOwn;
	}

	public PositionDTO() {
	}

	public int getWin() {
		return win;
	}

	public void setWin(int win) {
		this.win = win;
	}

	public int getLose() {
		return lose;
	}

	public void setLose(int lose) {
		this.lose = lose;
	}

	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}

	public int getGoal() {
		return goal;
	}

	public void setGoal(int goal) {
		this.goal = goal;
	}

	public int getGoalOwn() {
		return goalOwn;
	}

	public void setGoalOwn(int goalOwn) {
		this.goalOwn = goalOwn;
	}

	public Integer getGamesPlayed() {
		return getWin() + getDraw() + getLose();
	}

	public Integer getPoints() {
		return getWin() * 3 + getDraw();
	}

	public Integer getDiffGoals() {
		return getGoal() - getGoalOwn();
	}

	public TeamDTO getTeam() {
		return team;
	}

	public void setTeam(TeamDTO team) {
		this.team = team;
	}

}
